package docoffice.gui;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.LayoutStyle.ComponentPlacement;

/**
 * Treatment Record GUI
 * 
 * Will allow for a screen to show the user the different treatment record options.
 * @author Jackie Trujillo
 * @version $Revision: 1.0 $
 */
public class TreatmentRecGUI {

	private JFrame frame;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TreatmentRecGUI window = new TreatmentRecGUI();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public TreatmentRecGUI() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 450, 300);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JLabel label = new JLabel("Treatment Records");
		label.setFont(new Font("Engravers MT", Font.PLAIN, 16));
		
		JLabel lblTreatingDoctor = new JLabel("Treating Doctor:");
		
		JLabel lblDate = new JLabel("Date:");
		
		JLabel lblTime = new JLabel("Time:");
		
		JLabel lblAttentdingNurse = new JLabel("Attending Nurse:");
		
		JButton btnViewDoctorsOrders = new JButton("View Doctor's Orders");
		
		JLabel lblNewLabel = new JLabel("Symptoms:");
		
		JButton btnViewVitalSigns = new JButton("View Vital Signs");
		
		JLabel lblDiagnosis = new JLabel("Diagnosis:");
		GroupLayout groupLayout = new GroupLayout(frame.getContentPane());
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap(100, Short.MAX_VALUE)
					.addComponent(label, GroupLayout.PREFERRED_SIZE, 247, GroupLayout.PREFERRED_SIZE)
					.addGap(103))
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(55)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(btnViewDoctorsOrders)
							.addGap(18)
							.addComponent(btnViewVitalSigns))
						.addComponent(lblDiagnosis)
						.addComponent(lblNewLabel)
						.addComponent(lblAttentdingNurse)
						.addComponent(lblTime)
						.addComponent(lblDate)
						.addComponent(lblTreatingDoctor))
					.addContainerGap(58, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(36)
					.addComponent(label)
					.addGap(18)
					.addComponent(lblTreatingDoctor)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(lblDate)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(lblTime)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(lblAttentdingNurse)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(lblNewLabel)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(lblDiagnosis)
					.addGap(18)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(btnViewDoctorsOrders)
						.addComponent(btnViewVitalSigns))
					.addContainerGap(32, Short.MAX_VALUE))
		);
		frame.getContentPane().setLayout(groupLayout);
	}

}
